Remove duplicated definitions of linker symbols
authorAntonio Nino Diaz <[email protected]>
Fri, 25 Jan 2019 13:28:38 +0000 (13:28 +0000)
committerAntonio Nino Diaz <[email protected]>
Fri, 1 Feb 2019 12:24:57 +0000 (12:24 +0000)
Many parts of the code were duplicating symbols that are defined in
include/common/bl_common.h. It is better to only use the definitions in
this header.

As all the symbols refer to virtual addresses, they have to be
uintptr_t, not unsigned long. This has also been fixed in bl_common.h.

Change-Id: I204081af78326ced03fb05f69846f229d324c711
Signed-off-by: Antonio Nino Diaz <[email protected]>
19 files changed:
bl32/tsp/tsp_main.c
include/common/bl_common.h
plat/arm/common/tsp/arm_tsp_setup.c
plat/arm/css/sgi/sgi_plat.c
plat/hisilicon/hikey/hikey_bl2_setup.c
plat/hisilicon/hikey/hikey_bl31_setup.c
plat/hisilicon/hikey960/hikey960_bl2_setup.c
plat/hisilicon/hikey960/hikey960_bl31_setup.c
plat/hisilicon/poplar/bl2_plat_setup.c
plat/hisilicon/poplar/bl31_plat_setup.c
plat/layerscape/common/tsp/ls_tsp_setup.c
plat/marvell/common/marvell_bl31_setup.c
plat/qemu/qemu_bl31_setup.c
plat/qemu/sp_min/sp_min_setup.c
plat/rpi3/rpi3_bl31_setup.c
plat/socionext/uniphier/tsp/uniphier_tsp_setup.c
plat/socionext/uniphier/uniphier_bl2_setup.c
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c

index e042d96a09b788b091d87cec3e84f2ad595da358..407ed47881fc49dee9d46e0f4fc01eb7d19c70aa 100644 (file)
@@ -38,7 +38,7 @@ work_statistics_t tsp_stats[PLATFORM_CORE_COUNT];
  * linker symbol __BL32_END__. Use these addresses to compute the TSP image
  * size.
  ******************************************************************************/
-#define BL32_TOTAL_LIMIT (unsigned long)(&__BL32_END__)
+#define BL32_TOTAL_LIMIT BL32_END
 #define BL32_TOTAL_SIZE (BL32_TOTAL_LIMIT - (unsigned long) BL32_BASE)
 
 static tsp_args_t *set_smc_args(uint64_t arg0,
index f7b3b9c7d2918e967db4ca69b69303df047db1c8..5574d2ba6594d8300f26b984d6e4843fe3c38666 100644 (file)
  * BL images
  */
 #if SEPARATE_CODE_AND_RODATA
-IMPORT_SYM(unsigned long, __TEXT_START__,      BL_CODE_BASE);
-IMPORT_SYM(unsigned long, __TEXT_END__,                BL_CODE_END);
-IMPORT_SYM(unsigned long, __RODATA_START__,    BL_RO_DATA_BASE);
-IMPORT_SYM(unsigned long, __RODATA_END__,      BL_RO_DATA_END);
+IMPORT_SYM(uintptr_t, __TEXT_START__,          BL_CODE_BASE);
+IMPORT_SYM(uintptr_t, __TEXT_END__,            BL_CODE_END);
+IMPORT_SYM(uintptr_t, __RODATA_START__,                BL_RO_DATA_BASE);
+IMPORT_SYM(uintptr_t, __RODATA_END__,          BL_RO_DATA_END);
 #else
-IMPORT_SYM(unsigned long, __RO_START__,                BL_CODE_BASE);
-IMPORT_SYM(unsigned long, __RO_END__,          BL_CODE_END);
+IMPORT_SYM(uintptr_t, __RO_START__,            BL_CODE_BASE);
+IMPORT_SYM(uintptr_t, __RO_END__,              BL_CODE_END);
 #endif
 
 #if defined(IMAGE_BL1)
-IMPORT_SYM(uintptr_t, __BL1_ROM_END__,   BL1_ROM_END);
+IMPORT_SYM(uintptr_t, __BL1_ROM_END__,         BL1_ROM_END);
 
-IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE);
-IMPORT_SYM(uintptr_t, __BL1_RAM_END__,   BL1_RAM_LIMIT);
+IMPORT_SYM(uintptr_t, __BL1_RAM_START__,       BL1_RAM_BASE);
+IMPORT_SYM(uintptr_t, __BL1_RAM_END__,         BL1_RAM_LIMIT);
 #elif defined(IMAGE_BL2)
-IMPORT_SYM(unsigned long, __BL2_END__,         BL2_END);
+IMPORT_SYM(uintptr_t, __BL2_END__,             BL2_END);
 #elif defined(IMAGE_BL2U)
-IMPORT_SYM(unsigned long, __BL2U_END__,                BL2U_END);
+IMPORT_SYM(uintptr_t, __BL2U_END__,            BL2U_END);
 #elif defined(IMAGE_BL31)
-IMPORT_SYM(unsigned long, __BL31_START__,      BL31_START);
-IMPORT_SYM(unsigned long, __BL31_END__,                BL31_END);
+IMPORT_SYM(uintptr_t, __BL31_START__,          BL31_START);
+IMPORT_SYM(uintptr_t, __BL31_END__,            BL31_END);
 #elif defined(IMAGE_BL32)
-IMPORT_SYM(unsigned long, __BL32_END__,                BL32_END);
+IMPORT_SYM(uintptr_t, __BL32_END__,            BL32_END);
 #endif /* IMAGE_BLX */
 
 /* The following symbols are only exported from the BL2 at EL3 linker script. */
 #if BL2_IN_XIP_MEM && defined(IMAGE_BL2)
-extern uintptr_t __BL2_ROM_END__;
-#define BL2_ROM_END (uintptr_t)(&__BL2_ROM_END__)
+IMPORT_SYM(uintptr_t, __BL2_ROM_END__,         BL2_ROM_END);
 
-extern uintptr_t __BL2_RAM_START__;
-extern uintptr_t __BL2_RAM_END__;
-#define BL2_RAM_BASE (uintptr_t)(&__BL2_RAM_START__)
-#define BL2_RAM_LIMIT (uintptr_t)(&__BL2_RAM_END__)
+IMPORT_SYM(uintptr_t, __BL2_RAM_START__,       BL2_RAM_BASE);
+IMPORT_SYM(uintptr_t, __BL2_RAM_END__,         BL2_RAM_END);
 #endif /* BL2_IN_XIP_MEM */
 
 /*
@@ -113,8 +110,8 @@ extern uintptr_t __BL2_RAM_END__;
  * page-aligned addresses.
  */
 #if USE_COHERENT_MEM
-IMPORT_SYM(unsigned long, __COHERENT_RAM_START__,      BL_COHERENT_RAM_BASE);
-IMPORT_SYM(unsigned long, __COHERENT_RAM_END__,                BL_COHERENT_RAM_END);
+IMPORT_SYM(uintptr_t, __COHERENT_RAM_START__,  BL_COHERENT_RAM_BASE);
+IMPORT_SYM(uintptr_t, __COHERENT_RAM_END__,    BL_COHERENT_RAM_END);
 #endif
 
 /*******************************************************************************
index 2965ccd40cb44f640411f7281ada2f0a102407b3..a3dfa1e1d306bdb48c358178c2ac4dc7d3c08d70 100644 (file)
@@ -15,8 +15,6 @@
 #include <drivers/console.h>
 #include <plat/arm/common/plat_arm.h>
 
-#define BL32_END (unsigned long)(&__BL32_END__)
-
 /* Weak definitions may be overridden in specific ARM standard platform */
 #pragma weak tsp_early_platform_setup
 #pragma weak tsp_platform_setup
index 83ca30c87e57c29f6b4df78850f093ee85cc2350..42eff866a5f0fbc112e1394d8ba8e3ed7d1d1c5f 100644 (file)
 #include <plat/common/platform.h>
 #include <services/secure_partition.h>
 
-#if USE_COHERENT_MEM
-/*
- * The next 2 constants identify the extents of the coherent memory region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols
- * refer to page-aligned addresses.
- */
-#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
-#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
-
-#define BL31_COHERENT_RAM_BASE (uintptr_t)(&__COHERENT_RAM_START__)
-#define BL31_COHERENT_RAM_LIMIT (uintptr_t)(&__COHERENT_RAM_END__)
-#endif
-
 #define SGI_MAP_FLASH0_RO      MAP_REGION_FLAT(V2M_FLASH0_BASE,\
                                                V2M_FLASH0_SIZE,        \
                                                MT_DEVICE | MT_RO | MT_SECURE)
index b8723737365240fdf591d57466b1195cc3e9e102..c57fea90d30541e671e9bf230104e2bbe0f934f4 100644 (file)
 #include <hisi_sram_map.h>
 #include "hikey_private.h"
 
-/*
- * The next 2 constants identify the extents of the code & RO data region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
- */
-#define BL2_RO_BASE (unsigned long)(&__RO_START__)
-#define BL2_RO_LIMIT (unsigned long)(&__RO_END__)
-
-#define BL2_RW_BASE            (BL2_RO_LIMIT)
-
-/*
- * The next 2 constants identify the extents of the coherent memory region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
- * page-aligned addresses.
- */
-#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
+#define BL2_RW_BASE            (BL_CODE_END)
 
 static meminfo_t bl2_el3_tzram_layout;
 static console_pl011_t console;
@@ -295,10 +276,10 @@ void bl2_el3_plat_arch_setup(void)
 {
        hikey_init_mmu_el3(bl2_el3_tzram_layout.total_base,
                           bl2_el3_tzram_layout.total_size,
-                          BL2_RO_BASE,
-                          BL2_RO_LIMIT,
-                          BL2_COHERENT_RAM_BASE,
-                          BL2_COHERENT_RAM_LIMIT);
+                          BL_CODE_BASE,
+                          BL_CODE_END,
+                          BL_COHERENT_RAM_BASE,
+                          BL_COHERENT_RAM_END);
 }
 
 void bl2_platform_setup(void)
index b2dcb619645e4141f7c2ed3fda753ec0c2b5c780..0326e9f3dec71dd4c7bc5e453a15844e3e6b3d5e 100644 (file)
 
 #include "hikey_private.h"
 
-/*
- * The next 2 constants identify the extents of the code & RO data region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
- */
-#define BL31_RO_BASE (unsigned long)(&__RO_START__)
-#define BL31_RO_LIMIT (unsigned long)(&__RO_END__)
-
-/*
- * The next 2 constants identify the extents of the coherent memory region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
- * page-aligned addresses.
- */
-#define BL31_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL31_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
-
 static entry_point_info_t bl32_ep_info;
 static entry_point_info_t bl33_ep_info;
 static console_pl011_t console;
@@ -135,10 +116,10 @@ void bl31_plat_arch_setup(void)
 {
        hikey_init_mmu_el3(BL31_BASE,
                           BL31_LIMIT - BL31_BASE,
-                          BL31_RO_BASE,
-                          BL31_RO_LIMIT,
-                          BL31_COHERENT_RAM_BASE,
-                          BL31_COHERENT_RAM_LIMIT);
+                          BL_CODE_BASE,
+                          BL_CODE_END,
+                          BL_COHERENT_RAM_BASE,
+                          BL_COHERENT_RAM_END);
 }
 
 /* Initialize EDMAC controller with non-secure mode. */
index 788392db70b129a5ce5a13fc331cb4f645ca2716..7102de85b09a58377ab6e4bb3c3d1eb3445cf4ca 100644 (file)
 #include "hikey960_def.h"
 #include "hikey960_private.h"
 
-/*
- * The next 2 constants identify the extents of the code & RO data region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
- */
-#define BL2_RO_BASE (unsigned long)(&__RO_START__)
-#define BL2_RO_LIMIT (unsigned long)(&__RO_END__)
-
-#define BL2_RW_BASE            (BL2_RO_LIMIT)
-
-/*
- * The next 2 constants identify the extents of the coherent memory region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
- * page-aligned addresses.
- */
-#define BL2_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
+#define BL2_RW_BASE            (BL_CODE_END)
 
 static meminfo_t bl2_el3_tzram_layout;
 static console_pl011_t console;
@@ -312,10 +293,10 @@ void bl2_el3_plat_arch_setup(void)
 {
        hikey960_init_mmu_el3(bl2_el3_tzram_layout.total_base,
                              bl2_el3_tzram_layout.total_size,
-                             BL2_RO_BASE,
-                             BL2_RO_LIMIT,
-                             BL2_COHERENT_RAM_BASE,
-                             BL2_COHERENT_RAM_LIMIT);
+                             BL_CODE_BASE,
+                             BL_CODE_END,
+                             BL_COHERENT_RAM_BASE,
+                             BL_COHERENT_RAM_END);
 }
 
 void bl2_platform_setup(void)
index 67b06f498cc26a3f2da00f74459cc1bad839ed72..f1524b834f77ed57e7798f1efdb62968a1585ace 100644 (file)
 #include "hikey960_def.h"
 #include "hikey960_private.h"
 
-/*
- * The next 2 constants identify the extents of the code & RO data region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses.
- */
-#define BL31_RO_BASE   (unsigned long)(&__RO_START__)
-#define BL31_RO_LIMIT  (unsigned long)(&__RO_END__)
-
-/*
- * The next 2 constants identify the extents of the coherent memory region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
- * page-aligned addresses.
- */
-#define BL31_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL31_COHERENT_RAM_LIMIT        (unsigned long)(&__COHERENT_RAM_END__)
-
 static entry_point_info_t bl32_ep_info;
 static entry_point_info_t bl33_ep_info;
 static console_pl011_t console;
@@ -140,10 +121,10 @@ void bl31_plat_arch_setup(void)
 {
        hikey960_init_mmu_el3(BL31_BASE,
                        BL31_LIMIT - BL31_BASE,
-                       BL31_RO_BASE,
-                       BL31_RO_LIMIT,
-                       BL31_COHERENT_RAM_BASE,
-                       BL31_COHERENT_RAM_LIMIT);
+                       BL_CODE_BASE,
+                       BL_CODE_END,
+                       BL_COHERENT_RAM_BASE,
+                       BL_COHERENT_RAM_END);
 }
 
 static void hikey960_edma_init(void)
index ff8e107dbf1f59a12c128d2dbe2250914b6b2f25..11403b07fe1216d87d5c45859332c3c03125b27f 100644 (file)
 #include "hi3798cv200.h"
 #include "plat_private.h"
 
-/* Memory ranges for code and read only data sections */
-#define BL2_RO_BASE    (unsigned long)(&__RO_START__)
-#define BL2_RO_LIMIT   (unsigned long)(&__RO_END__)
-
-/* Memory ranges for coherent memory section */
-#define BL2_COHERENT_RAM_BASE  (unsigned long)(&__COHERENT_RAM_START__)
-#define BL2_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
-
 static meminfo_t bl2_tzram_layout __aligned(CACHE_WRITEBACK_GRANULE);
 static console_pl011_t console;
 
@@ -206,10 +198,10 @@ void bl2_plat_arch_setup(void)
 {
        plat_configure_mmu_el1(bl2_tzram_layout.total_base,
                               bl2_tzram_layout.total_size,
-                              BL2_RO_BASE,
-                              BL2_RO_LIMIT,
-                              BL2_COHERENT_RAM_BASE,
-                              BL2_COHERENT_RAM_LIMIT);
+                              BL_CODE_BASE,
+                              BL_CODE_END,
+                              BL_COHERENT_RAM_BASE,
+                              BL_COHERENT_RAM_END);
 }
 
 void bl2_platform_setup(void)
index 69911e8d5ecc3eecb98755a70149b46f983bbd72..f81078f09e51ee208b92afb9d2631ef11549132b 100644 (file)
 #include "hi3798cv200.h"
 #include "plat_private.h"
 
-/* Memory ranges for code and RO data sections */
-#define BL31_RO_BASE   (unsigned long)(&__RO_START__)
-#define BL31_RO_LIMIT  (unsigned long)(&__RO_END__)
-
-/* Memory ranges for coherent memory section */
-#define BL31_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL31_COHERENT_RAM_LIMIT        (unsigned long)(&__COHERENT_RAM_END__)
-
 #define TZPC_SEC_ATTR_CTRL_VALUE (0x9DB98D45)
 
 static entry_point_info_t bl32_image_ep_info;
@@ -133,10 +125,10 @@ void bl31_plat_arch_setup(void)
 {
        plat_configure_mmu_el3(BL31_BASE,
                               (BL31_LIMIT - BL31_BASE),
-                              BL31_RO_BASE,
-                              BL31_RO_LIMIT,
-                              BL31_COHERENT_RAM_BASE,
-                              BL31_COHERENT_RAM_LIMIT);
+                              BL_CODE_BASE,
+                              BL_CODE_END,
+                              BL_COHERENT_RAM_BASE,
+                              BL_COHERENT_RAM_END);
 
        INFO("Boot BL33 from 0x%lx for %lu Bytes\n",
             bl33_image_ep_info.pc, bl33_image_ep_info.args.arg2);
index c6073619a72177cfa58aba13cfbed13a693c5fa3..f3b60276c2d08b8a1f918b9866c81c4e4b1c44c4 100644 (file)
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include <common/bl_common.h>
 #include <common/debug.h>
 #include <common/interrupt_props.h>
 #include <drivers/arm/gicv2.h>
@@ -12,8 +13,6 @@
 #include "plat_ls.h"
 #include "soc.h"
 
-#define BL32_END (unsigned long)(&__BL32_END__)
-
 static const interrupt_prop_t g0_interrupt_props[] = {
        INTR_PROP_DESC(9, GIC_HIGHEST_SEC_PRIORITY,
                       GICV2_INTR_GROUP0, GIC_INTR_CFG_LEVEL),
index 802c01383bde07e524aeebe698570cf791e55a44..26ba90654201534e0040a963a64a9117034eca71 100644 (file)
@@ -8,6 +8,7 @@
 #include <assert.h>
 
 #include <arch.h>
+#include <common/bl_common.h>
 #include <common/debug.h>
 #ifdef USE_CCI
 #include <drivers/arm/cci.h>
 #include <marvell_plat_priv.h>
 #include <plat_marvell.h>
 
-/*
- * The next 3 constants identify the extents of the code, RO data region and the
- * limit of the BL31 image.  These addresses are used by the MMU setup code and
- * therefore they must be page-aligned.  It is the responsibility of the linker
- * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols
- * refer to page-aligned addresses.
- */
-#define BL31_END (unsigned long)(&__BL31_END__)
-
 /*
  * Placeholder variables for copying the arguments that have been passed to
  * BL31 from BL2.
index 97468114a1ae5eb075eb577028096c31386b4117..7453b89007c03d65733dab55b88ba258b7611320 100644 (file)
 
 #include "qemu_private.h"
 
-/*
- * The next 3 constants identify the extents of the code, RO data region and the
- * limit of the BL3-1 image.  These addresses are used by the MMU setup code and
- * therefore they must be page-aligned.  It is the responsibility of the linker
- * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols
- * refer to page-aligned addresses.
- */
-#define BL31_END (unsigned long)(&__BL31_END__)
-
 /*
  * Placeholder variables for copying the arguments that have been passed to
  * BL3-1 from BL2.
index 88decdf4dd6170007546a965e0f70bd9a82500cc..88f7397c6aebd05b7816cc6c7716b564654e9f32 100644 (file)
 
 static entry_point_info_t bl33_image_ep_info;
 
-/*
- * The next 3 constants identify the extents of the code, RO data region and the
- * limit of the BL3-1 image.  These addresses are used by the MMU setup code and
- * therefore they must be page-aligned.  It is the responsibility of the linker
- * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols
- * refer to page-aligned addresses.
- */
-#define BL32_RO_BASE (unsigned long)(&__RO_START__)
-#define BL32_RO_LIMIT (unsigned long)(&__RO_END__)
-#define BL32_END (unsigned long)(&__BL32_END__)
-
-#if USE_COHERENT_MEM
-/*
- * The next 2 constants identify the extents of the coherent memory region.
- * These addresses are used by the MMU setup code and therefore they must be
- * page-aligned.  It is the responsibility of the linker script to ensure that
- * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols
- * refer to page-aligned addresses.
- */
-#define BL32_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
-#define BL32_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
-#endif
-
 /******************************************************************************
  * On a GICv2 system, the Group 1 secure interrupts are treated as Group 0
  * interrupts.
@@ -146,7 +123,7 @@ void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1,
 void sp_min_plat_arch_setup(void)
 {
        qemu_configure_mmu_svc_mon(BL32_RO_BASE, BL32_END - BL32_RO_BASE,
-                                 BL32_RO_BASE, BL32_RO_LIMIT,
+                                 BL_CODE_BASE, BL_CODE_END,
                                  BL_COHERENT_RAM_BASE, BL_COHERENT_RAM_END);
 
 }
index d5c691e198e83e1be4b28ee280abb66f968de35b..2f1bc6493e81d77666a28ca61826c5a7c606c51a 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "rpi3_private.h"
 
-#define BL31_END       (uintptr_t)(&__BL31_END__)
-
 /*
  * Placeholder variables for copying the arguments that have been passed to
  * BL31 from BL2.
index e7dcc652db4db8b19066c98de9098848239164a2..0b232e0674f10d50a0b1e3b96e5c3c2fb952c470 100644 (file)
@@ -6,11 +6,11 @@
 
 #include <platform_def.h>
 
+#include <common/bl_common.h>
 #include <lib/xlat_tables/xlat_mmu_helpers.h>
 
 #include "../uniphier.h"
 
-#define BL32_END               (unsigned long)(&__BL32_END__)
 #define BL32_SIZE              ((BL32_END) - (BL32_BASE))
 
 void tsp_early_platform_setup(void)
index 7109d21fefbeb5128330474b094decb6cb00c2ff..787b3ac3d11e5fa1ef835c1ec9f8a5220636cd0b 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "uniphier.h"
 
-#define BL2_END                        (unsigned long)(&__BL2_END__)
 #define BL2_SIZE               ((BL2_END) - (BL2_BASE))
 
 static int uniphier_bl2_kick_scp;
index b0eb66ca40aa59ae23bc0ae2834e62d3c668843c..0d0b991aeebfeff2b4c09296824d0e9e8877d902 100644 (file)
@@ -16,8 +16,6 @@
 
 #include <plat_private.h>
 
-#define BL31_END (unsigned long)(&__BL31_END__)
-
 static entry_point_info_t bl32_image_ep_info;
 static entry_point_info_t bl33_image_ep_info;
 
index 902e4b3b6d09cccb05d844b152cde84a776ef01f..e3d4164d492ad3325d59b518b12227e56ab2d2c7 100644 (file)
@@ -12,9 +12,6 @@
 #include <plat_private.h>
 #include <platform_tsp.h>
 
-
-#define BL32_END (unsigned long)(&__BL32_END__)
-
 /*******************************************************************************
  * Initialize the UART
  ******************************************************************************/